package be.mapitall;

import java.io.FileNotFoundException;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;

public class MapViewActivity extends Activity 
{

	public static final String MAP_FILE_PATH = "MAP_FILE_PATH";
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.mapview);
        
        String mapfilepath = getIntent().getStringExtra(MAP_FILE_PATH);
        
        TouchImageView mapview = (TouchImageView) findViewById(R.id.tiv_MapView);
		try {
			Bitmap bitmap = BitmapFactory.decodeFile(mapfilepath);
			mapview.setImageBitmap(bitmap);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 
		
		
      
    }
    
	
}
